get sizes an icon set can render without falling back to missing image
authorHavoc Pennington <hp@redhat.com>
Fri, 25 May 2001 20:41:46 +0000 (20:41 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Fri, 25 May 2001 20:41:46 +0000 (20:41 +0000)
commit87684f9549a8ea4e2fa7b4c6ab69ded73b34b991
tree6d8f80c793761bd48f38aadbf6dae7c7f45b75fb
parentb5db5d514d7ffd829c6e97a4630cf95d7b8fef3d
get sizes an icon set can render without falling back to missing image

2001-05-25  Havoc Pennington  <hp@redhat.com>

* gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
set can render without falling back to missing image icon

* gtk/gtktextview.c (gtk_text_view_size_request): request full
size of text, instead of random values

* gtk/gtktreeview.c (gtk_tree_view_size_request): request full
size of tree view, instead of random values

* gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
image in an appropriate size

        * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/

        Throughout: fix GTK_STOCK_BUTTON_ instances

* gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
Add a bunch of new stock items/icons

* gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
new function, convenience for inserting columns with a data func

* gtk/gtkiconfactory.c: keep a list of all existing icon factories
(_gtk_icon_factory_list_ids): use list of all factories to
generate a list of all known IDs

* gtk/gtkstock.c (gtk_stock_list_ids): replace
gtk_stock_list_items() with a function that returns all IDs known
including those for GtkIconFactory.
138 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
demos/gtk-demo/Makefile.am
demos/gtk-demo/button_box.c
demos/gtk-demo/dialog.c
demos/gtk-demo/sizegroup.c
docs/reference/gtk/gtk-sections.txt
docs/reference/gtk/tmpl/gtk-unused.sgml
docs/reference/gtk/tmpl/gtkstock.sgml
gtk/gtkbutton.c
gtk/gtkcolorseldialog.c
gtk/gtkdialog.c
gtk/gtkfilesel.c
gtk/gtkfontsel.c
gtk/gtkiconfactory.c
gtk/gtkiconfactory.h
gtk/gtkmessagedialog.c
gtk/gtkstock.c
gtk/gtkstock.h
gtk/gtktextview.c
gtk/gtktreeview.c
gtk/gtktreeview.h
gtk/gtkwidget.c
gtk/stock-icons/Makefile.am
gtk/stock-icons/stock_add.png [new file with mode: 0644]
gtk/stock-icons/stock_add_24.png [new file with mode: 0644]
gtk/stock-icons/stock_align_center.png [new file with mode: 0644]
gtk/stock-icons/stock_align_center_24.png [new file with mode: 0644]
gtk/stock-icons/stock_align_justify.png [new file with mode: 0644]
gtk/stock-icons/stock_align_justify_24.png [new file with mode: 0644]
gtk/stock-icons/stock_align_left.png [new file with mode: 0644]
gtk/stock-icons/stock_align_left_24.png [new file with mode: 0644]
gtk/stock-icons/stock_align_right.png [new file with mode: 0644]
gtk/stock-icons/stock_align_right_24.png [new file with mode: 0644]
gtk/stock-icons/stock_bottom.png [new file with mode: 0644]
gtk/stock-icons/stock_bottom_24.png [new file with mode: 0644]
gtk/stock-icons/stock_cdrom.png [new file with mode: 0644]
gtk/stock-icons/stock_cdrom_24.png [new file with mode: 0644]
gtk/stock-icons/stock_clear.png [new file with mode: 0644]
gtk/stock-icons/stock_clear_24.png [new file with mode: 0644]
gtk/stock-icons/stock_colorselector.png [new file with mode: 0644]
gtk/stock-icons/stock_colorselector_24.png [new file with mode: 0644]
gtk/stock-icons/stock_convert.png [new file with mode: 0644]
gtk/stock-icons/stock_convert_24.png [new file with mode: 0644]
gtk/stock-icons/stock_copy.png [new file with mode: 0644]
gtk/stock-icons/stock_copy_24.png [new file with mode: 0644]
gtk/stock-icons/stock_cut.png [new file with mode: 0644]
gtk/stock-icons/stock_cut_24.png [new file with mode: 0644]
gtk/stock-icons/stock_down_arrow.png [new file with mode: 0644]
gtk/stock-icons/stock_down_arrow_24.png [new file with mode: 0644]
gtk/stock-icons/stock_exec.png [new file with mode: 0644]
gtk/stock-icons/stock_exec_24.png [new file with mode: 0644]
gtk/stock-icons/stock_first.png [new file with mode: 0644]
gtk/stock-icons/stock_first_24.png [new file with mode: 0644]
gtk/stock-icons/stock_font.png [new file with mode: 0644]
gtk/stock-icons/stock_font_24.png [new file with mode: 0644]
gtk/stock-icons/stock_home.png [new file with mode: 0644]
gtk/stock-icons/stock_home_24.png [new file with mode: 0644]
gtk/stock-icons/stock_index.png [new file with mode: 0644]
gtk/stock-icons/stock_index_24.png [new file with mode: 0644]
gtk/stock-icons/stock_jump_to.png [new file with mode: 0644]
gtk/stock-icons/stock_jump_to_24.png [new file with mode: 0644]
gtk/stock-icons/stock_last.png [new file with mode: 0644]
gtk/stock-icons/stock_last_24.png [new file with mode: 0644]
gtk/stock-icons/stock_left_arrow.png [new file with mode: 0644]
gtk/stock-icons/stock_left_arrow_24.png [new file with mode: 0644]
gtk/stock-icons/stock_menu_print_preview.png [new file with mode: 0644]
gtk/stock-icons/stock_menu_sort_descending.png [new file with mode: 0644]
gtk/stock-icons/stock_paste.png [new file with mode: 0644]
gtk/stock-icons/stock_paste_24.png [new file with mode: 0644]
gtk/stock-icons/stock_preferences.png [new file with mode: 0644]
gtk/stock-icons/stock_preferences_24.png [new file with mode: 0644]
gtk/stock-icons/stock_print.png [new file with mode: 0644]
gtk/stock-icons/stock_print_24.png [new file with mode: 0644]
gtk/stock-icons/stock_print_preview.png [new file with mode: 0644]
gtk/stock-icons/stock_print_preview_16.png [new file with mode: 0644]
gtk/stock-icons/stock_print_preview_24.png [new file with mode: 0644]
gtk/stock-icons/stock_properties.png [new file with mode: 0644]
gtk/stock-icons/stock_properties_24.png [new file with mode: 0644]
gtk/stock-icons/stock_redo.png [new file with mode: 0644]
gtk/stock-icons/stock_redo_24.png [new file with mode: 0644]
gtk/stock-icons/stock_refresh.png [new file with mode: 0644]
gtk/stock-icons/stock_refresh_24.png [new file with mode: 0644]
gtk/stock-icons/stock_remove.png [new file with mode: 0644]
gtk/stock-icons/stock_remove_24.png [new file with mode: 0644]
gtk/stock-icons/stock_revert.png [new file with mode: 0644]
gtk/stock-icons/stock_revert_24.png [new file with mode: 0644]
gtk/stock-icons/stock_right_arrow.png [new file with mode: 0644]
gtk/stock-icons/stock_right_arrow_24.png [new file with mode: 0644]
gtk/stock-icons/stock_save_as.png [new file with mode: 0644]
gtk/stock-icons/stock_save_as_24.png [new file with mode: 0644]
gtk/stock-icons/stock_search.png [new file with mode: 0644]
gtk/stock-icons/stock_search_24.png [new file with mode: 0644]
gtk/stock-icons/stock_search_replace.png [new file with mode: 0644]
gtk/stock-icons/stock_search_replace_24.png [new file with mode: 0644]
gtk/stock-icons/stock_sort_ascending.png [new file with mode: 0644]
gtk/stock-icons/stock_sort_ascending_24.png [new file with mode: 0644]
gtk/stock-icons/stock_sort_descending.png [new file with mode: 0644]
gtk/stock-icons/stock_sort_descending_16.png [new file with mode: 0644]
gtk/stock-icons/stock_sort_descending_24.png [new file with mode: 0644]
gtk/stock-icons/stock_spellcheck.png [new file with mode: 0644]
gtk/stock-icons/stock_spellcheck_24.png [new file with mode: 0644]
gtk/stock-icons/stock_stop.png [new file with mode: 0644]
gtk/stock-icons/stock_stop_24.png [new file with mode: 0644]
gtk/stock-icons/stock_text_bold.png [new file with mode: 0644]
gtk/stock-icons/stock_text_bold_24.png [new file with mode: 0644]
gtk/stock-icons/stock_text_italic.png [new file with mode: 0644]
gtk/stock-icons/stock_text_italic_24.png [new file with mode: 0644]
gtk/stock-icons/stock_text_strikeout.png [new file with mode: 0644]
gtk/stock-icons/stock_text_strikeout_24.png [new file with mode: 0644]
gtk/stock-icons/stock_text_strikethrough_24.png [new file with mode: 0644]
gtk/stock-icons/stock_text_underline.png [new file with mode: 0644]
gtk/stock-icons/stock_text_underline_24.png [new file with mode: 0644]
gtk/stock-icons/stock_top.png [new file with mode: 0644]
gtk/stock-icons/stock_top_24.png [new file with mode: 0644]
gtk/stock-icons/stock_trash.png [new file with mode: 0644]
gtk/stock-icons/stock_trash_24.png [new file with mode: 0644]
gtk/stock-icons/stock_undelete.png [new file with mode: 0644]
gtk/stock-icons/stock_undelete_24.png [new file with mode: 0644]
gtk/stock-icons/stock_undo.png [new file with mode: 0644]
gtk/stock-icons/stock_undo_24.png [new file with mode: 0644]
gtk/stock-icons/stock_up_arrow.png [new file with mode: 0644]
gtk/stock-icons/stock_up_arrow_24.png [new file with mode: 0644]
gtk/stock-icons/stock_zoom_1.png [new file with mode: 0644]
gtk/stock-icons/stock_zoom_1_24.png [new file with mode: 0644]
gtk/stock-icons/stock_zoom_fit.png [new file with mode: 0644]
gtk/stock-icons/stock_zoom_fit_24.png [new file with mode: 0644]
gtk/stock-icons/stock_zoom_in.png [new file with mode: 0644]
gtk/stock-icons/stock_zoom_in_24.png [new file with mode: 0644]
gtk/stock-icons/stock_zoom_out.png [new file with mode: 0644]
gtk/stock-icons/stock_zoom_out_24.png [new file with mode: 0644]
tests/testgtk.c
tests/testtext.c